projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db93509
)
fixup! tests: Avoid rounding error and correct source pixels
author
Martin Nordholts
<martinn@src.gnome.org>
Fri, 18 May 2012 11:33:54 +0000
(13:33 +0200)
committer
Martin Nordholts
<martinn@src.gnome.org>
Fri, 18 May 2012 11:33:54 +0000
(13:33 +0200)
tests/float-to-8bit.c
patch
|
blob
|
history
diff --git
a/tests/float-to-8bit.c
b/tests/float-to-8bit.c
index 3634506f6a8fc00dd9225aeeed9453e92936790b..b273008d5fc7bb0973cc2b6059cdcc90e587907c 100644
(file)
--- a/
tests/float-to-8bit.c
+++ b/
tests/float-to-8bit.c
@@
-30,7
+30,6
@@
main (int argc,
char **argv)
{
int OK = 1;
- int i = 0;
babl_init ();
@@
-87,7
+86,7
@@
main (int argc,
}
{
- float in[][4] = {{ 0.21582, -0.55, -0.14, 1.0 }, {0.2, 0.3
.
01, 0.5, 0.6}, {0.0, 3.0, 6.0, 3.0}};
+ float in[][4] = {{ 0.21582, -0.55, -0.14, 1.0 }, {0.2, 0.301, 0.5, 0.6}, {0.0, 3.0, 6.0, 3.0}};
unsigned char out[][4] = {{55, 0, 0, 255 }, {85,128,212,153}, {0,255,255,255}};
CHECK_CONV("float -> u8 6", unsigned char,